sieve moving messages to junkmail Junk folder

Finally got sieve working correctly on lion server.


The script i chose is the sample script form apple's 10.6 server manual, it's a spam filter in the index. I modified it to work correctly.


HOWEVER: Now mail marked as spam is going to the junkmail account but it's going to the JUNK folder in the junk mail account.


1. Does this hurt the learn_junk_mail.sh script if it's not in the inbox?

2. How can i stop this? My script is below.


require "fileinto";

#- this is my attempt to stop it from going into the junk mail filter when it is sent to the JunkMail account.

if header :contains "delivered-to" "junkmail@mydomain.com" {

fileinto "Inbox";

}

#

# If the subject line has a certain keyword...

elsif header :contains "subject" "**SPAM**" {

# forward it to the postmaster

redirect "junkmail@mydomain.com";

fileinto "Junk";

}

#

# If the junk mail filter has marked this as junk...

elsif header :contains ["X-Spam-Flag"] ["YES"]{

# throw it out

redirect "junkmail@mydomain.com";

fileinto "Junk";

}

#

# If the junk mail filter thinks this is probably junk

elsif header :contains ["X-Spam-Level"] ["******"]{

# put it in my junkmail box for me to check

fileinto "Junk";

redirect "junkmail@mydomain.com";

}

#

# for all other cases...

else {

# put it in my inbox

fileinto "INBOX";

}

# End of script

Mac mini, Mac OS X (10.7.3), Lion Server

Posted on Jun 9, 2013 4:23 AM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

sieve moving messages to junkmail Junk folder

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.